﻿using FluentNHibernate.Mapping;
using Konekcija.Core.Reporting.Dto.Application.Profiles;

namespace Konekcija.Core.Reporting.Mappings.Profiles
{
    public class MobileAppChangeMap : ClassMap<MobileAppChange>
    {
        public MobileAppChangeMap()
        {
            Schema("profile");
            Table("MobileAppChanges");

            Id(x => x.Id).GeneratedBy.GuidComb().Not.Nullable();
            Map(x => x.FlightChange).Nullable();
            Map(x => x.FlightStatusChanged).Nullable();
            Map(x => x.DealsChange).Nullable();
            Map(x => x.DealsStatusChanged).Nullable();
            Map(x => x.FaqChange).Nullable();
            Map(x => x.FaqStatusChanged).Nullable();
            Map(x => x.MerchantId).Nullable();

            Map(x => x.DateCreated).Nullable();

            References(x => x.User).Nullable();
        }
    }
}